<%@ page import="ch.cern.Point" %>



<div class="fieldcontain ${hasErrors(bean: pointInstance, field: 'title', 'error')} required">
	<label for="title">
		<g:message code="point.title.label" default="Title" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="title" required="" value="${pointInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pointInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="point.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${pointInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pointInstance, field: 'latitude', 'error')} required">
	<label for="latitude">
		<g:message code="point.latitude.label" default="Latitude" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="latitude" min="-180.0" max="180.0" required="" value="${fieldValue(bean: pointInstance, field: 'latitude')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pointInstance, field: 'longitude', 'error')} required">
	<label for="longitude">
		<g:message code="point.longitude.label" default="Longitude" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="longitude" min="-180.0" max="180.0" required="" value="${fieldValue(bean: pointInstance, field: 'longitude')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: pointInstance, field: 'map', 'error')} required">
	<label for="map">
		<g:message code="point.map.label" default="Map" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="map" name="map.id" from="${ch.cern.Map.list()}" optionKey="id" required="" value="${pointInstance?.map?.id}" class="many-to-one"/>
</div>

